package com.eshore.norm.pojo.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 云主机实时监控
 * </p>
 *
 * @author chenjl
 * @since 2024-01-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class NormVmMonitor implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 资源池id
     */
    @ApiModelProperty(value = "资源池id")
    private Long configId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createDate;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateDate;

    /**
     * CPU利用率，两位小数
     */
    @ApiModelProperty(value = "CPU利用率")
    @TableField("cpuUsage")
    private Float cpuUsage;

    /**
     * 内存利用率，两位小数
     */
    @ApiModelProperty(value = "内存利用率")
    @TableField("memUsedPercent")
    private Float memUsedPercent;

    /**
     * 网络流入速率byte/s
     */
    @ApiModelProperty(value = "网络流入速率byte/s")
    @TableField("averBytesRecvRate")
    private Long averBytesRecvRate;

    /**
     * 网络流入速率byte/s
     */
    @ApiModelProperty(value = "网络流入速率byte/s")
    @TableField("averBytesSentRate")
    private Long averBytesSentRate;

    /**
     * UUID
     */
    @ApiModelProperty(value = "UUID")
    private String uuid;

    @ApiModelProperty(value = "名称")
    @TableField("NAME")
    private String name;


}
